package com.ruoyi.project.biz.service;

import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.biz.entity.*;
import com.ruoyi.project.biz.entity.FlowInstDO;
import com.ruoyi.project.biz.entity.InstEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface FlowInstService {
    /**
     * 测试接口
     */
    void test();

    /**
     * 获取流程列表
     * @return
     */
    Page<FlowInstDO> getList(InstQueryEntity queryEntity, Pageable pageable);

    /**
     * 新增流程
     * @return
     */
    AjaxResult addFlow(InstEntity instEntity);

    /**
     * 下一环节
     * @return
     */
    AjaxResult nextStep(RecordEntity recordEntity);

    /**
     * 回退流程
     * @return
     */
    int backStep();

    /**
     * 获取流程过程信息
     * @return
     */
    List<FlowRecordDO> getRecordsInfo(Long instId);

}
